package com.weipai.springboot.model;

import com.weipai.springboot.module.util.DateUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.UUID;

/**
 * 会场活动实体类
 */
@Table(name = "c_special_offer")
public class SpecialOffer {

    private String specialOfferId= UUID.randomUUID().toString();//主键;

    private String specialOfferTheme;//主题

    private String specialOfferStart;//活动开始时间

    private String specialOfferEnd;//活动结束时间

    private Integer specialOfferStatus=0;//0默认（未开启），1开启，-1关闭

    private String specialOfferImg;//主图

    private Integer specialOfferDel=0;//逻辑删除：0默认，-1删除

    private String userId;//发起人id

    private String createTime= DateUtils.timeFormat(System.currentTimeMillis());//创建时间

    private String delTime;//删除时间   

    private String updateTime;//修改时间

    private String activityType;//活动的类型---特价活动---秒杀活动

    public String getActivityType() {
        return activityType;
    }

    public void setActivityType(String activityType) {
        this.activityType = activityType;
    }

    public String getSpecialOfferId() {
        return specialOfferId;
    }

    public void setSpecialOfferId(String specialOfferId) {
        this.specialOfferId = specialOfferId == null ? null : specialOfferId.trim();
    }

    public String getSpecialOfferTheme() {
        return specialOfferTheme;
    }

    public void setSpecialOfferTheme(String specialOfferTheme) {
        this.specialOfferTheme = specialOfferTheme == null ? null : specialOfferTheme.trim();
    }

    public String getSpecialOfferStart() {
        return specialOfferStart;
    }

    public void setSpecialOfferStart(String specialOfferStart) {
        this.specialOfferStart = specialOfferStart == null ? null : specialOfferStart.trim();
    }

    public String getSpecialOfferEnd() {
        return specialOfferEnd;
    }

    public void setSpecialOfferEnd(String specialOfferEnd) {
        this.specialOfferEnd = specialOfferEnd == null ? null : specialOfferEnd.trim();
    }

    public Integer getSpecialOfferStatus() {
        return specialOfferStatus;
    }

    public void setSpecialOfferStatus(Integer specialOfferStatus) {
        this.specialOfferStatus = specialOfferStatus;
    }

    public String getSpecialOfferImg() {
        return specialOfferImg;
    }

    public void setSpecialOfferImg(String specialOfferImg) {
        this.specialOfferImg = specialOfferImg == null ? null : specialOfferImg.trim();
    }

    public Integer getSpecialOfferDel() {
        return specialOfferDel;
    }

    public void setSpecialOfferDel(Integer specialOfferDel) {
        this.specialOfferDel = specialOfferDel;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getDelTime() {
        return delTime;
    }

    public void setDelTime(String delTime) {
        this.delTime = delTime == null ? null : delTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }
}